Add InternetArchiveProvider#23
Conversation
|
CC @C10udburst |
|
Will be updated to crossplatform once #25 is merged so this shouldn't be merged yet. |
|
NOTE: needs a new CloudStream stable first since it uses API that is currently only on prerelease |
|
Code looks good. I will test tomorrow. 👍 Sorry for the excessive delay. |
|
It seems to work, but the Extractor for the internet archive looks to be outdated. |
No problem
Sorry not sure what you mean outdated? |
It simply did not give proper links for anything I tested on the home page, however it looks like I assumed incorrectly. |
fire-light42
left a comment
There was a problem hiding this comment.
Excellent programming!
| override suspend fun search(query: String, page: Int): SearchResponseList? { | ||
| return try { | ||
| val responseText = app.get("$mainUrl/advancedsearch.php?q=${query.encodeUri()}+mediatype:(movies OR audio)&fl[]=identifier&fl[]=title&fl[]=mediatype&rows=26&page=$page&output=json").text | ||
| val res = tryParseJson<SearchResult>(responseText) |
There was a problem hiding this comment.
I recommend using app.get(...).parsedSafe<SearchResult>() for cleaner code.
No description provided.